package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import play.data.validation.MinSize;
import play.data.validation.Required;
import play.db.jpa.Model;
/**
 * 
 * @author MrROY
 * 用户评论
 *
 */
@Entity
@Table(name="T_COMMENT")
public class Comment extends Model{
	@Required
	@MinSize(value=8)
	public String content;
	@Required
	@ManyToOne
	public Story story;
	@Required
	@ManyToOne
	public User postUser;
}
